package com.lingshu.app.ui.mine;

import androidx.lifecycle.MutableLiveData;

import com.lingshu.app.base.BaseViewModel;
import com.lingshu.app.config.App;
import com.lingshu.app.config.Constants;

import javax.inject.Inject;

import dagger.hilt.android.lifecycle.HiltViewModel;

/**
 * @author 于定金
 * @version 1.0
 * @Date 2024/1/3 14:15
 * @Description
 */
@HiltViewModel
public class MineFragmentViewModel extends BaseViewModel {
    public final MutableLiveData<String> name = new MutableLiveData<>();
    public final MutableLiveData<String> account = new MutableLiveData<>();

    @Inject
    MineFragmentViewModel() {

    }

    /**
     * 数据初始化
     */
    @Override
    public void initData() {
        name.postValue(App.getMvUtils().getString(Constants.USER_NAME));
        account.postValue(App.getMvUtils().getString(Constants.USER_ACCOUNT));
    }
}
